﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace XiAnAirport.Models
{
    public class Statistics
    {
        public int sum { get; set; }
        public string areaName { get; set; }
        public string elevatorName { get; set; }//设备名称
        public string startTime { get; set; }
        public string endTime { get; set; }
        public string color { get; set; }
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾
        public string order { get; set; } //asc=升序，desc=降序
        public string elevatorNo { get; set; }//设备编号
        public string elevatorids { get; set; }
        public int elevatorID { get; set; }//设备id
    }

    public class FaultRank
    {
        public string faultContent { get; set; }
        public int sum { get; set; }
    }

    public class ElevatorRuns
    {
        public string time { get; set; }
        public string month { get; set; }//月份
        public double runs { get; set; }//设备运行次数
        public string elevatorName { get; set; }//设备名称
        public string elevatorNo { get; set; }//设备编号
        public int id { get; set; }//电梯id
    }

    public class ElevatorStatistics
    {
        public int sum { get; set; }//运行总次数
        public List<ElevatorRuns> list { get; set; }//近12月数据
    }

    public class ElevatorRunTime
    {
        public string time { get; set; }
        public string month { get; set; }//月份
        public int timesum { get; set; }//设备运行时间
        public string elevatorName { get; set; }//设备名称
        public string elevatorNo { get; set; }//设备编号
        public int id { get; set; }//设备id
    }

    public class ElevatorTimeStatistics
    {
        public int sum { get; set; }//运行总时间
        public List<ElevatorRunTime> list { get; set; }//近12月数据
    }

    public class FaultTypeStatistics
    {
        public List<FaultTypeTimes> list { get; set; }//近12月数据
    }

    public class FaultTypeTimes
    {
        //public string time { get; set; }//年份
        public string month { get; set; }//月份
        public int fault { get; set; }//故障类型次数
        public string faultname { get; set; }//故障类型
    }

    public class ElevatorFaultStatistics
    {
        public List<ElevatorFaultTimes> list { get; set; }//近12月数据
        public int sum { get; set; }//故障总次数
    }

    public class ElevatorFaultTimes
    {
        public string time { get; set; }
        public string month { get; set; }//月份
        public int fault { get; set; }//电梯故障次数
        public string elevatorName { get; set; }//设备名称
        public string elevatorNo { get; set; }//设备编号
        public int id { get; set; }//设备id
    }

    public class ElevatorFaultRank
    {
        public string ElevatorName { get; set; }//电梯名称
        public int fault { get; set; }//电梯故障次数
        public string startTime { get; set; }
        public string endTime { get; set; }
        public string order { get; set; } //asc=升序，desc=降序
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾
        public int id { get; set; }//设备id
        public string elevatorids { get; set; }
    }
}
